#define  _CRT_SECURE_NO_WARNINGS 1

#include"List.h"

void testList1()
{
	LTNode* plist = LTInit();
	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);
	LTPushBack(plist, 5);

	LTPrint(plist);

	LTPushFront(plist, 24);
	LTPrint(plist);

	LTPopBack(plist);
	LTPrint(plist);


	//LTPopFront(plist);
	//LTPrint(plist);
}
void testList2()
{
	LTNode* plist = LTInit();
	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);
	LTPushBack(plist, 5);
	LTPrint(plist);

	LTNode* pos = LTFind(plist, 3);
	if (pos)
	{
		LTErase(pos);
		pos = NULL;
	}
	LTPrint(plist);

}


int main()
{
	//testList1();

	testList2();
	return 0;
}

